package com.hsy.linemoney.modules.lanuch;

import android.os.Bundle;
import android.os.Message;
import android.view.View;
import android.widget.TextView;

import com.deparse.dpframe.tools.utils.DPLogUtil;
import com.hsy.linemoney.R;
import com.hsy.linemoney.modules.auth.activity.LoginActivity;
import com.hsy.linemoney.modules.common.CommonBaseFragment;
import com.hsy.linemoney.modules.main.MainActivity;
import com.hsy.linemoney.utils.CommonUtils;

/**
 * Created by hsy on 2016/4/21.
 */
public class FragmentLauncher3 extends CommonBaseFragment {
    private TextView next_step;

    @Override
    protected int getFragmentLayout() {
        return R.layout.launcher_layout_3;
    }

    @Override
    protected void initView(View view, Bundle savedInstanceState) {
        next_step = F(R.id.next_step);
        next_step.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                CommonUtils.setIsFirstInUse(getAttchedActivity(), false);
                DPLogUtil.d("Launcher->main");
                startActivityWithTaskCleared(MainActivity.class);
            }
        });
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void onHandleMessage(Message msg) {

    }

    @Override
    public void onFragmentUpdate() {

    }
}
